﻿using System;

namespace KanbanBoard.Client.View.DragAndDrop {
    public class DropPreviewCommand {
        private readonly Delegate action;

        public DropPreviewCommand(Delegate action) {
            this.action = action;
        }

        public void Execute(object draggedItem, object droppedOverItem) {
            action.DynamicInvoke(draggedItem, droppedOverItem);
        }
    }
}